package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_EntryApplyItem", catalog="Id")
public class TcwEntryApplyItem extends BaseEntity<TcwEntryApplyItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="TransactionTypeBid", nameJava="transactionTypeBid", typeDataBase="varchar")
	private String transactionTypeBid;
	@YsField(nameDataBase="EntryAmount", nameJava="entryAmount", typeDataBase="decimal")
	private BigDecimal entryAmount;
	@YsField(nameDataBase="PartnerBankInfoId", nameJava="partnerBankInfoId", typeDataBase="bigint")
	private Long partnerBankInfoId;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="AnnexFile", nameJava="annexFile", typeDataBase="varchar")
	private String annexFile;
	@YsField(nameDataBase="ReceiptAnnexFile", nameJava="receiptAnnexFile", typeDataBase="varchar")
	private String receiptAnnexFile;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwEntryApplyItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcwEntryApplyItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcwEntryApplyItem setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getTransactionTypeBid() {
		return transactionTypeBid;
	}
	public TcwEntryApplyItem setTransactionTypeBid(String transactionTypeBid) {
		this.transactionTypeBid = transactionTypeBid;
		return this;
	}
	public BigDecimal getEntryAmount() {
		return entryAmount;
	}
	public TcwEntryApplyItem setEntryAmount(BigDecimal entryAmount) {
		this.entryAmount = entryAmount;
		return this;
	}
	public Long getPartnerBankInfoId() {
		return partnerBankInfoId;
	}
	public TcwEntryApplyItem setPartnerBankInfoId(Long partnerBankInfoId) {
		this.partnerBankInfoId = partnerBankInfoId;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwEntryApplyItem setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getAnnexFile() {
		return annexFile;
	}
	public TcwEntryApplyItem setAnnexFile(String annexFile) {
		this.annexFile = annexFile;
		return this;
	}
	public String getReceiptAnnexFile() {
		return receiptAnnexFile;
	}
	public TcwEntryApplyItem setReceiptAnnexFile(String receiptAnnexFile) {
		this.receiptAnnexFile = receiptAnnexFile;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwEntryApplyItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwEntryApplyItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwEntryApplyItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwEntryApplyItem tcwEntryApplyItem(
		String pbid,
		String vgsbm,
		String transactionTypeBid,
		BigDecimal entryAmount,
		Long partnerBankInfoId,
		String remark,
		String annexFile,
		String receiptAnnexFile,
		Integer status
			) {
		TcwEntryApplyItem entity = new TcwEntryApplyItem();
		entity.setPbid(pbid);
		entity.setVgsbm(vgsbm);
		entity.setTransactionTypeBid(transactionTypeBid);
		entity.setEntryAmount(entryAmount);
		entity.setPartnerBankInfoId(partnerBankInfoId);
		entity.setRemark(remark);
		entity.setAnnexFile(annexFile);
		entity.setReceiptAnnexFile(receiptAnnexFile);
		entity.setStatus(status);
		return entity;
	}
}